//
//  QueryFlight.h
//  AirTicket
//
//  Created by imac.bmw on 10-12-21.
//  Copyright 2010 aircococ. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Tickets.h"
#import "QueryResults.h"

@protocol QueryFlightDelegate;

@interface QueryFlight : NSObject <NSXMLParserDelegate>{

	id<QueryFlightDelegate> delegate;
	NSMutableData *webData;
	NSString *orig;
	NSString *dest;
	NSString *flightDate;

	NSString *airway;
	
	QueryResults *result;
	Tickets *aTicket;
	airClass *ticketClass; 
	NSURLConnection *theConnection;
	NSMutableString *currentString;
	//NSMutableArray *ticket;
//	NSMutableArray *seat;

}
@property (nonatomic, retain)NSURLConnection *theConnection;
@property (nonatomic, assign)id<QueryFlightDelegate> delegate;
@property (nonatomic, retain)airClass *ticketClass; 
@property (nonatomic, retain)NSMutableString *currentString;
@property (nonatomic, retain) Tickets *aTicket;
//@property (nonatomic, retain)NSMutableArray *allMsg;
@property (nonatomic, retain)QueryResults *result;
@property (nonatomic, retain)NSString *orig;
@property (nonatomic, retain)NSString *dest;
@property (nonatomic, retain)NSString *flightDate;
@property (nonatomic, retain)NSString *airway;
@property (nonatomic, retain) NSMutableData *webData;
-(void)getTicketInfo;
@end

//--------------------
@protocol QueryFlightDelegate

-(void)didGetResluts:(QueryResults *)result;

@end

